<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j" template="layout/template.xhtml">

	<ui:define name="body">
		<h:form>
			<h:panelGrid columns="1" style="margin-left:100px;">
				<rich:panel
					header="#{userData.intern.userName} isimli kullanicinin ozgecmis bilgilerini girin"
					style="width:720px;font-size:x-large;margin-left:80px;">
					<h:panelGrid columns="2" rowClasses="prop" 
						style="background-image:url(./img/hr.png);height:400px;width:700px;"
						columnClasses="name,value">

						<h:outputText value="Isim :" />
						<h:inputText value="#{userData.intern.name}" style="width:400px;"/>

						<h:outputText value="Soyisim :" />
						<h:inputText value="#{userData.intern.surname}" style="width:400px;"/>

						<h:outputText value="E-mail Adresi :" />
						<h:inputText value="#{userData.intern.email}" style="width:400px;"/>

						<h:outputText value="Telefon No :" />
						<h:inputText value="#{userData.intern.telephone}" style="width:400px;"/>

						<h:outputText value="Universite :" />
						<h:inputText value="#{userData.intern.university}" style="width:400px;"/>

						<h:outputText value="Bolum :" />
						<h:inputText value="#{userData.intern.department}" style="width:400px;"/>

						<h:outputText value="AGNO :" />
						<h:inputText value="#{userData.intern.agno}" style="width:400px;" />

						<h:outputText value="Programlama Dilleri :" />
						<h:selectOneMenu value="#{userData.language}" style="width:400px;">
							<f:selectItems value="#{userData.selectItems}" />
						</h:selectOneMenu>

						<h:outputText value="" />
						<a4j:commandButton value="Ekle" action="#{userData.addLanguage()}"
							style="width:100px;font-size:small;font-weight:bold;margin-left:300px;" />

						<h:outputText value="" />
						<a4j:commandButton value="Ozgecmisi Kaydet"
							action="#{userData.saveUserData()}"
							style="width:400px;font-size:medium;font-weight:bold;"
							onclick="Richfaces.showModalPanel('internModal')" />
					</h:panelGrid>
				</rich:panel>
			</h:panelGrid>
		</h:form>

		<!-- intern sayfasinda acilan modalPanel(popUp)-->
		<rich:modalPanel id="internModal" height="150" width="400">
			<h:form>
				<h:panelGrid columns="1">
					<h:outputText value="Bilgileriniz Veritabanina Kaydedildi..."
						style="font-size:x-large;text-align:center;" />
					<a4j:commandButton value="Tamam" style="width:200px;font-size:large;font-weight:bold;"
						action="#{userData.yankeesGoHome()}" />
				</h:panelGrid>
			</h:form>
		</rich:modalPanel>

	</ui:define>
</ui:composition>

